#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "login.h"
// Incluir un nuevo usuario
// INSERT INTO usuarios VALUES (1, "apu", "super", true);
//Check user por password
char* checkUser(char* user, char* pass, char* tabla)
{
	char* query = (char*)malloc(sizeof(char)*100); 
	strcpy(query, "SELECT * FROM ");
	strcat(query, tabla);
	strcat(query, " WHERE user='");
	strcat(query, user);
	strcat(query, "' AND pass='");
	strcat(query, pass);
	strcat(query, "';");

	return query;
}

